test(react-query/useSuspenseQuery): remove unnecessary 'act' from background refetch, 'refetchInterval', and post-unmount assertions#10212
Conversation
…kground refetch, 'refetchInterval', and post-unmount assertions
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR removes Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
View your CI Pipeline Execution ↗ for commit 2dd5aae
☁️ Nx Cloud last updated this comment at |
🎯 Changes
Remove 4 unnecessary
actwrappers fromuseSuspenseQuery.test.tsxwhere suspend resolution is not involved:refetch()— component already has data displayed, refetch triggersstatuschange without suspendrefetchIntervalbackground refetch — data updates (count: 1→2→3) without suspendactis only needed for suspend → resolve or suspend → error transitions. Background refetches and post-unmount assertions don't requireact.✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit